<?$this->load->view('admin/header.tpl');?>
	<div id="wrap" class="lw clearfix ab">
		
		<a href="/admin/info">返回文章管理列表</a>
		<?if($success):?><div class="success"><?=$success?></div><?endif?>
		<div class="form-error"><?=$error?></div>
			<h1 class="title">添加/编辑【<?=$title?>】</h1>
			<form action="<?=$action?>" method="post" class="form">

				<div class="form-item clearfix">
					<div class="form-left clearfix">
						以下必填
					</div>
					<div class="form-right">
						<div class="form-right-label">
							<label for="content"><?=$title?>内容</label>
						</div>
						<div class="">
							<textarea id="content" name="content"><?if($info){echo htmlspecialchars_decode(stripslashes($info->content));}?></textarea>
						</div>
					</div>
				</div>
				<div class="form-item clearfix">
					<div class="form-left">
						默认当前时间
					</div>
					<div class="form-right">
						<div class="form-right-label">
							<label for="time">修改时间</label>
						</div>
						<div class="form-right-text off">
							<input type="text" class="text w1" id="time" name="time" value="<?if($info){echo $info->time;}else{echo date('Y-m-d H:i:s');}?>"/>
							<span class="form-border-right"></span>
						</div>
					</div>
				</div>
			
				

			<div class="form-item clearfix">
				<div class="form-left clearfix">
				</div>
				<div class="form-right">
					<input type="submit" class="button"value="<?=$button?>" />
				</div>
			</div>
		</form>
	
	</div>
<script type="text/javascript" src="/www/ckeditor/ckeditor.js"></script>
<script type="text/javascript"><!--
CKEDITOR.replace('content', {
	filebrowserBrowseUrl: '/common/filemanager',
	filebrowserImageBrowseUrl: '/common/filemanager',
	filebrowserFlashBrowseUrl: '/common/filemanager',
	filebrowserUploadUrl: '/common/filemanager',
	filebrowserImageUploadUrl: '/common/filemanager',
	filebrowserFlashUploadUrl: '/common/filemanager',
	height:'500px'
});

//--></script>


<?$this->load->view('footer.tpl');?>